const express = require("express");
const app = express();

const booksRouter=require("./router.js");
app.use(booksRouter)

//设置模板引擎
app.set("view engine", "ejs");
//加载静态资源
app.use(express.static("public"));


app.listen(8000, (req, res) => {
  console.log("访问 localhost:8000");
});
